home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / diverses / cexpress / screen / blinkon.asm < prev    next >
Encoding:
Assembly Source File  |  1989-05-03  |  405 b   |  20 lines

  1. ;void  blink_on();
  2.  
  3.     EXTRN  _memory_model:byte
  4.     EXTRN  _color:byte
  5.  
  6. _TEXT    SEGMENT BYTE PUBLIC 'CODE'
  7.     ASSUME CS:_TEXT
  8.     PUBLIC _blink_on
  9. _blink_on proc near
  10.     mov  al,_color        ;get the current color
  11.     or   al,10000000B    ;set the relevant bit
  12.     mov  _color,al        ;set the value
  13.     cmp  _memory_model,0    ;quit
  14.     jle  quit        ;
  15.     db   0CBh        ;RET far
  16. quit:    ret            ;RET near
  17. _blink_on endp
  18. _TEXT    ENDS
  19.     END
  20.